package designPattern.creation.factorypattern.simplefactorypattern.impl;

import designPattern.creation.factorypattern.simplefactorypattern.BMW;

/**
 * 宝马320
 * @author 张琪
 * @date 2023/1/28 17:06
 */
public class BMW320 implements BMW {
    private String name = "BMW320";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getProductName() {
        return "产品型号: " + getName();
    }
}
